package cn.itsource.org.service;

import cn.itsource.basic.util.PageList;
import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;

import java.util.List;

//业务层：添加，删除，修改，获取
public interface IDepartmentService {
    void add(Department department);
    void delete(Long id);
    void update(Department department);
    Department getById(Long id);
    List<Department> getAll();

    //分页+高级查询
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
